package com.itheima.dao;

import org.apache.ibatis.annotations.One;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.example.Person;

public interface PersonMapper {
    @Select("select * from tb_person where id = #{id}")
    @Results(@Result(property = "card_id",column = "card_id"
            ,one = @One(select = "com.itheima.dao.idCardMapper.selectIdCard")))
    Person selectPersonById(int id);
}
